package exceptions;

import java.sql.SQLException;

/**
 *
 * @author Alejandro
 */
public class DatabaseException extends Exception {
    private String message;
    public DatabaseException(SQLException e){
        message = e.getMessage();
    }

    @Override
    public String getMessage() {
       return message;
    }
}
